package com.wy17113.model.dao;

import java.sql.SQLException;
import java.util.List;

import com.wy17113.model.entity.Common;
import com.wy17113.model.entity.LifeInfo;

public interface ILifeInfoDao {

	public int getLifeInfoListCounts(int typeId,String userId,String flag);

	public List<LifeInfo> getLifeInfoList(int typeId,String userId, int startIndex,
			int pageRowCount,String flag);	
	
	public void saveLifeInfo(LifeInfo li) throws SQLException;

	public LifeInfo getLifeInfoById(String id);

	public void deleteLifeInfos(String[] allId);

	public void shenHeLifeInfos(String[] ids) throws Exception;

	public void zhiDingLifeInfo(String id);
	
	public int getMaxSort();
	
	public List<Common> getCommonListByInfoId(String infoId, int startIndex, int pageRowCount) throws Exception;
	
	public int getCommonCountByInfoId(String infoId) throws Exception;

	public int getMaxCommonSort(String infoId);
	
	public void saveCommon(Common com) throws SQLException;

	public void deleteCommons(String[] ids);

	public void updateClicksById(String infoId);

	public void updateLifeInfoUpdateDate(String infoId,String updateDate);
}
